﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace bxml.betterxml.natural3
{
   // Element["add"]
    public class Add : ContainsExpressionList
    {
        public override int Evaluate()
        {
            int sum = 0;
            foreach (Expression expression in expressions)
            {
                sum += expression.Evaluate();
            }
            return sum;
        }

    }

}
